Page({
  data: {
    list: []
  },
  onLoad() {
    this.getList()
  },
  async getList() {
    const res = await wx.http.get('/repair')
    // console.log('列表', res);
    this.setData({
      list: res.data.rows
    })
  },
  goDetail(e) {
    wx.navigateTo({
      url: `/repair_pkg/pages/detail/index?id=${e.mark.id}`,
    })
  },
  addRepair() {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index',
    })
  },
})
